package com.xxx.mch.domain.request;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * @author FengHaixin
 * @description 一句话描述该文件的用途
 * @date 2020-02-25
 */
@Setter
@Getter
@ToString (callSuper = true)
@ApiModel("定量得分参数")
public class CreateScoreRequest
{
    @NotNull (message = "请输入uid")
    @ApiModelProperty("用户code")
    private String uid;

    @NotNull (message = "请输入taskId")
    @ApiModelProperty("任务类型ID")
    private Integer taskId;

    @NotNull (message = "请输入taskName")
    @ApiModelProperty("任务类型")
    private String taskName;

    @NotNull (message = "请输入levelId")
    @ApiModelProperty("细则Id")
    private Integer levelId;

    @NotNull (message = "请输入levelName")
    @ApiModelProperty("细则名称")
    private String levelName;

    @ApiModelProperty("体裁分ID")
    private Integer genresId;

    @NotNull (message = "请输入title")
    @ApiModelProperty("标题")
    private String title;

    @NotNull (message = "请输入planCompletionTime")
    @ApiModelProperty("计划完成时间")
    private Date planCompletionTime;

    @NotNull (message = "请输入completionTime")
    @JSONField (format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("完成时间")
    private Date completionTime;

    @NotNull (message = "请输入assignorId")
    @ApiModelProperty("指派人ID")
    private String assignorId;

    @NotNull (message = "请输入assignor")
    @ApiModelProperty("指派人名")
    private String assignor;

    @ApiModelProperty("1：完成分；2：采用分")
    private Integer scoreType = 1;
}
